package org.sakai.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DiseaseMapper {
    
    /**
     * 获取疾病列表
     */
    List<Map<String, Object>> getDiseaseList(Map<String, Object> params);
    
    /**
     * 获取疾病总数
     */
    int getDiseaseCount(Map<String, Object> params);
    
    /**
     * 根据ID获取疾病详情
     */
    Map<String, Object> getDiseaseById(@Param("id") Long id);
    
    /**
     * 获取疾病关联的科室信息
     */
    List<Map<String, Object>> getDepartmentsByDiseaseId(@Param("diseaseId") Long diseaseId);
    
    /**
     * 搜索疾病
     */
    List<Map<String, Object>> searchDisease(@Param("keyword") String keyword);
}
